package com.jixiang.model.goods.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.util.List;

/**
 * (GsGoodsType)表实体类
 *
 * @author makejava
 * @since 2023-10-14 21:13:16
 */
@SuppressWarnings("serial")
@Data
public class GsGoodsType extends Model<GsGoodsType> {

    private Long id;

    private String name;

    private String nameCode;

    private Integer priority;

    private String icon;

    private String description;

    private Integer level;

    private String pic;

    private Long parentGoodsTypeId;

    private String wxPic;
    @TableField(exist = false)
    private String parentGoodsTypeName;

    @TableField(exist = false)
    private List<GsGoodsType> children;

    @TableField(exist = false)
    private List<GsGoodsInfo> goodsInfo;

    @TableField(exist = false)
    private List<GsTypePic> gsTypePicList;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNameCode() {
        return nameCode;
    }

    public void setNameCode(String nameCode) {
        this.nameCode = nameCode;
    }

    public Integer getPriority() {
        return priority;
    }

    public void setPriority(Integer priority) {
        this.priority = priority;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Long getParentGoodsTypeId() {
        return parentGoodsTypeId;
    }

    public void setParentGoodsTypeId(Long parentGoodsTypeId) {
        this.parentGoodsTypeId = parentGoodsTypeId;
    }

}

